<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends CommonController {
    public function index(){
		$test = M('cate');
		$list = $test->order('id')->select();
		$this->list = $list;
		$this->display();
    }
	public function admin(){
		$this->display();
	}
	public function upload(){
		$setting=C('UPLOAD_SITEIMG_QINIU');
		$Upload = new \Think\Upload($setting);
		$info = $Upload->upload($_FILES);
		dump($info);
	}
}